<html>
    <body>
        <h1>hello word!!!</h1>
        <p>this is a html page</p>
    </body>


    var xhr = new XMLHttpRequest();
    xhr.open('get', 'http://localhost:8080/hello');
    xhr.send();
    xhr.onload = function() {
    console.log(xhr.responseText);
    }
    <br>

    var xhr = new XMLHttpRequest();
    xhr.open('get', 'http://localhost:8080/hello');
    xhr.withCredentials = true;
    xhr.send();
    xhr.onload = function() {
    console.log(xhr.responseText);
    }
</html>